find the last non repeating character